﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name=”renderer” content=”webkit|ie-comp|ie-stand” />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="icon" href="~/favicon.ico">

    <title>@ViewBag.Title|敏捷开发框架</title>
    <link href="~/absky/plugin/pace/pace-theme-loading-bar.css" rel="stylesheet" />
    <link href="~/absky/font/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/absky/plugin/bootstrap/bootstrap.min.css" rel="stylesheet" />

    <script src="~/absky/plugin/pace/pace.min.js"></script>
    <script src="~/absky/plugin/jquery/jquery-1.10.2.min.js"></script>
    <script src="~/absky//plugin/bootstrap/bootstrap.min.js"></script>
    <script src="~/absky/plugin/jqprint/jquery.jqprint-0.3.js"></script>

    <link href="~/absky/css/ab-common.css" rel="stylesheet" />
    <link href="~/absky/plugin/scroll/scroll.css" rel="stylesheet" />
    <link href="~/absky/css/ab-iframe-form.css" rel="stylesheet" />
    <link href="~/absky/plugin/layout/ab-layout.css" rel="stylesheet" />
    <link href="~/absky/plugin/tree/ab-tree.css" rel="stylesheet" />
    <link href="~/absky/plugin/select/ab-select.css" rel="stylesheet" />
    <link href="~/absky/plugin/timeline/ab-timeline.css" rel="stylesheet" />
    <link href="~/absky/plugin/formselect/ab-formselect.css" rel="stylesheet" />
    <link href="~/absky/plugin/custmerquery/ab-custmerquery.css" rel="stylesheet" />
    <link href="~/absky/plugin/date/ab-datepicker.css" rel="stylesheet" />
    <link href="~/absky/plugin/grid/jfgrid.css" rel="stylesheet" />

    <script src="~/absky/plugin/laydate/laydate.js"></script>
    <!--[if lt IE 9]>
      <script src="~/absky/plugin/bootstrap/html5shiv.min.js"></script>
      <script src="~/absky/plugin/bootstrap/respond.min.js"></script>
    <![endif]-->
    <script>function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };</script>
    @Html.Raw("<script>var abCurrentUrl=top.$.rootUrl;var abModuleButtonList;var abModuleColumnList;var abModule;var abForm</script>")
</head>
<body class="@Absky.Util.NetHelper.Browser @Absky.Util.WebHelper.GetUITheme()">
    @RenderBody()

    <script src="~/absky/plugin/resize/resize.js"></script>
    <script src="~/absky/plugin/mousewheel/mousewheel.js"></script>
    <script src="~/absky/plugin/scroll/scroll.js"></script>
    <script src="~/absky/plugin/layout/ab-layout.js"></script>
    <script src="~/absky/plugin/tree/ab-tree.js"></script>
    <script src="~/absky/plugin/select/ab-select.js"></script>
    <script src="~/absky/plugin/timeline/ab-timeline.js"></script>
    <script src="~/absky/plugin/formselect/ab-formselect.js"></script>
    <script src="~/absky/plugin/custmerquery/ab-custmerquery.js"></script>
    <script src="~/absky/plugin/date/ab-datepicker.js"></script>
    <script src="~/absky/js/ab-validator.js"></script>
    <script src="~/absky/js/ab-authorize.js"></script>
    <script src="~/absky/js/ab-excel.js"></script>
    <script src="~/absky/js/ab-form.js"></script>
    <script src="~/absky/plugin/grid/jfgrid.js"></script>
    <script>
        $(function () {
            $('#ab_layout').abLayout();

            // 翻译指定标签
            $('.ablg').each(function () {
                var $this = $(this);
                top.absky.language.get($this.text(), function (text) {
                    $this.text(text);
                });
            });
            // 翻译表单标题
            $('.ab-form-item-title').each(function () {
                var $this = $(this);
                var $font = $this.find('font');
                $font.remove();
                top.absky.language.get($this.text(), function (text) {
                    if ($font.length > 0) {
                        $this.html(text + '<font face="宋体">*</font>');
                    }
                    else {
                        $this.text(text);
                    }

                });
            });
            // input placeholder 翻译
            $('input[placeholder]').each(function () {
                var $this = $(this);
                var _text = $this.attr('placeholder');
                top.absky.language.get(_text, function (text) {
                    $this.attr('placeholder', text);
                });
            });

            top.absky.httpAsync('GET', top.$.rootUrl + '/SystemModule/Menu/GetAuthorizeButtonColumnList', { url: abCurrentUrl }, function (data) {
                abModuleButtonList = data.btns;
                abModuleColumnList = data.cols;
                abModule = data.module;
                abForm = data.forms;
                if (!!window.bootstrap) {
                    bootstrap(jQuery, top.absky);
                }
            });
        });</script>
</body>

</html>
